from django.conf.urls import patterns, url

urlpatterns = patterns('', 
    url(r'^new_excursion/$', 'userarea.views.new_excursion'),
    url(r'^images/$', 'userarea.views.images'),
    url(r'^images/edit/(?P<img_id>\d+)/$', 'userarea.views.edit_image'),
    url(r'^excursion/(?P<ex_id>\d+)/$', 'userarea.views.view_excursion'),
    url(r'^excursion/(?P<ex_id>\d+)/images/(?P<img_id>\d+)/(?P<index>\d+)/$', 'userarea.views.excursion_view_images'),
    url(r'^excursion/(?P<ex_id>\d+)/add_outcrop/$', 'userarea.views.add_outcrop'),
    url(r'^excursion/(?P<ex_id>\d+)/link_outcrop/$', 'userarea.views.link_outcrop'),
    url(r'^excursion/edit/(?P<ex_id>\d+)/$', 'userarea.views.edit_excursion'),
    url(r'^excursion/join/(?P<ex_id>\d+)/$', 'userarea.views.join_excursion'),
    url(r'^excursion/join/private/(?P<ex_id>\d+)/$', 'userarea.views.join_private_excursion'),
    url(r'^outcrop/edit/(?P<out_id>\d+)/$', 'userarea.views.edit_outcrop'),
    url(r'^$', 'userarea.views.index'),
)